//
//  WSBaseCollectionCell.m
//  LANGirl
//
//  Created by 杨泓晔 on 16/3/10.
//  Copyright © 2016年 杨泓晔. All rights reserved.
//

#import "WSBaseCollectionCell.h"

@interface WSBaseCollectionCell ()

@end

@implementation WSBaseCollectionCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.myBackWhiteView = [UIImageView new];
        //self.myBackWhiteView.backgroundColor = [];
        self.myBackWhiteView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.myBackWhiteView];
        [self.myBackWhiteView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self);
            make.bottom.mas_equalTo(self);
            make.right.left.mas_equalTo(self);
            
        }];
        
        self.myBackWhiteView.layer.borderWidth=1.0;
        //边框颜色
        self.myBackWhiteView.layer.borderColor=COLOR_FRAME;

        //裁掉边框
        self.myBackWhiteView.layer.masksToBounds = YES;
        //设置半径
        self.myBackWhiteView.layer.cornerRadius = 7;
    }
    return self;
}

@end
